import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { MedicalTemplateEntity } from '../../entity/template';
import { MedicalTemplateService } from '../../service/template';

/**
 * 病历模板
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: MedicalTemplateEntity,
  service: MedicalTemplateService,
  pageQueryOp: {
    keyWordLikeFields: ['a.name'],
  },
})
export class AdminMedicalTemplateController extends BaseController {
  @Inject()
  medicalTemplateService: MedicalTemplateService;
}
